package com.xd.clap.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class Task {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //位置
    private String location;

    //详细位置
    private String fullAddress;

    //任务内容
    private String content;

    //任务图片
    private String taskImg;

    //上传时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    //上传人
    private String createBy;

    //任务状态0：未完成，1：已完成
    private String taskStatus;
}
